package com.project.design.factory.abstractFactory;

/**
 * 具体工厂
 */
public class SRfarm implements Farm {

    @Override
    public Animal newAnimal() {
        System.out.println("新牛出生");
        return new Cattle();
    }

    @Override
    public Plant newPlant() {
        System.out.println("水果到货");
        return new Fruitage();
    }
}
